-- GENERATED SPELL FOR [Amani Eagle] --


function spell0_24159(pUnit, Event) --@Talon,n/a--
pUnit:FullCastSpellOnTarget(43517,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_24159', 555, 1)
end

function Sorts_24159(pUnit, Event)
local choix_sorts_24159 = math.random(0, 0)
if choix_sorts_24159 == 0 then
pUnit:RegisterEvent('spell0_24159', 1, 1)
end
end

function mob24159_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_24159', math.random(1500, 3000), 1)
end

function mob24159_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob24159_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob24159_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(24159, 1, 'mob24159_Action')
RegisterUnitEvent(24159, 2, 'mob24159_Leave')
RegisterUnitEvent(24159, 3, 'mob24159_Kill')
RegisterUnitEvent(24159, 4, 'mob24159_Die')
